.container {
    display: flex;
}
.container div {
    flex: 1;
    border: red solid 1px;
    padding: 2px 8px;
}